package com.wuyou.domain.bo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 刘雷雨
 * @since 2022-09-29
 */
@TableName("tb_advertising")
@ApiModel(value = "Advertising对象", description = "")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Builder
public class AdvertisingBO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "advertising_id", type = IdType.AUTO)
    private Long advertisingId;

    @ApiModelProperty("标题")
    private String tilie;

    @ApiModelProperty("图片")
    private String image;

    @ApiModelProperty("类型id")
    private Integer advTypeId;

    @ApiModelProperty("链接")
    private String url;

    @ApiModelProperty("投放开始时间")
    private Date startTime;

    @ApiModelProperty("投放结束时间")
    private Date endTime;

    @ApiModelProperty("投放天数")
    private Integer devoteDay;

    @ApiModelProperty("总价格")
    private BigDecimal totalPrice;

    @ApiModelProperty("广告状态(0待投放1已投放)")
    private Integer status;

    @ApiModelProperty("用户ID")
    private Long userId;

}
